package net.gq.logistics.service.serviceimpl;

import net.gq.logistics.mapper.PermissionMapper;
import net.gq.logistics.pojo.Permission;
import net.gq.logistics.pojo.PermissionExample;
import net.gq.logistics.service.PermissionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author ASUS
 * @date 2020/5/16
 */
@Service("permissionService")
public class PermissionServiceImpl implements PermissionService {


    @Resource(name = "permissionMapper")
    private PermissionMapper mapper;


    @Override
    public int deleteByPrimaryKey(Long permissionId) {
        return mapper.deleteByPrimaryKey(permissionId);
    }

    @Override
    public int insert(Permission record) {
        return mapper.insert(record);
    }

    @Override
    public int insertSelective(Permission record) {
        return mapper.insertSelective(record);
    }

    @Override
    public List<Permission> selectByExample(PermissionExample example) {
        return mapper.selectByExample(example);
    }

    @Override
    public Permission selectByPrimaryKey(Long permissionId) {
        return mapper.selectByPrimaryKey(permissionId);
    }

    @Override
    public int updateByPrimaryKeySelective(Permission record) {
        return mapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Permission record) {
        return mapper.updateByPrimaryKey(record);
    }

    @Override
    public List<String> selectExpressionByIds(List<Long> permissionIdsList) {
        return mapper.selectExpressionByIds(permissionIdsList);
    }
}
